﻿#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
	char * list[5] = { "astronomy", "astounding", "astrophysics", "astracize", "asterism" };
	int count = 0;
	for (size_t i = 0; i < 5; i++)
	{
		if (strncmp(list[i],"astro",5)==0)
		{
			printf("Found:%s\n", list[i]);
			count++;
		}
	}
	printf("The list contained %d words beginning with astro.\n", count);
	system("pause");
	return 0;
}